﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Cocbook_DTO;

namespace Sale_and_manage
{
    public class ProjectView
    {
        public int ProjectID { get; set; }
        public string Name { get; set; }
        public string Address { get; set; }
        public string StartDate { get; set; }
        public string EndDate { get; set; }
        public int Table { get; set; }
        public bool Status { get; set; }
        public ProjectView(Project p = null)
        {
            ProjectID = p.ProjectID;
            Name = p.ProjectName;
            Address = p.ProjectAddress;
            StartDate = p.StartDate.ToShortDateString();
            EndDate = p.EndDate.ToShortDateString();
            Table = p.Table;
            Status = p.Status;
        }
    }
}
